package Model;

import java.sql.Timestamp;

public class FinancialProductTask {
    private int id; // 任务ID
    private int userId; // 用户ID
    private int productId; // 理财产品ID
    private double purchaseAmount; // 购买金额
    private double expectedEarnings; // 预期收益
    private Timestamp purchaseDate; // 购买日期
    private Timestamp maturityDate; // 到期日期
    private String status; // 任务状态

    // Getters and Setters

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public double getPurchaseAmount() {
        return purchaseAmount;
    }

    public void setPurchaseAmount(double purchaseAmount) {
        this.purchaseAmount = purchaseAmount;
    }

    public double getExpectedEarnings() {
        return expectedEarnings;
    }

    public void setExpectedEarnings(double expectedEarnings) {
        this.expectedEarnings = expectedEarnings;
    }

    public Timestamp getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(Timestamp purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    public Timestamp getMaturityDate() {
        return maturityDate;
    }

    public void setMaturityDate(Timestamp maturityDate) {
        this.maturityDate = maturityDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "FinancialProductTask{" +
                "id=" + id +
                ", userId=" + userId +
                ", productId=" + productId +
                ", purchaseAmount=" + purchaseAmount +
                ", expectedEarnings=" + expectedEarnings +
                ", purchaseDate=" + purchaseDate +
                ", maturityDate=" + maturityDate +
                ", status='" + status + '\'' +
                '}';
    }
}